function revInt(aInt){
    var intStr = aInt.split(1);
    console.log('Result string is : ' + intStr.join(','));
}

revInt('123456789');
